#pragma once
#ifndef SCENE_H
#define SCENE_H


#include <iostream>
#include "Functions.h"

using namespace std;


class View
{

public:
	  
	IplImage *img; // View image 
	int cornersNumber; // numbers of corners
	int imgHeght;
	int imgWidth;
	char *imgName; // Image Name
	double cornerValues[10000];// Value corners points (correspondent to the CornerPoints)
	CvPoint CornerPoints[10000];// Corner points
	CvPoint interestPoints[10000];// points of interest in this image
	int interestPointsNumber; // number of points of interest in this image
	
	// Constructors
	View();
	View(char* imagePath);
	View(IplImage *image, int idframe);
	// Destructor
   ~View(void);

   
   
   void setImg(IplImage *image, int idframe);
   void showImage();
   /* Get the image corners and sort by higher value  */
   void GetCorners();
   /*Hold an Image*/
   void hold();
   /* Print the n (numPoints) first corner values */
   void printValuePoints(int numPoints);
   void MarkImageCornes();
   /*Set the points inside the rec area as the interest points*/
   void setInterestPoints(CvRect rect);
   void sortCornerPoints();
   void markInterestPoints();
   void markPoint(CvPoint cPoint);
};
#endif